using System.Collections;
using UnityEngine;

public class HideAds : MonoBehaviour
{
	public static int apiLevelint = 1;

	private void Start()
	{
		if (PlayerPrefs.GetInt("tmp") != 7)
		{
			StartCoroutine(WaitAndHide(1f));
		}
	}

	private IEnumerator WaitAndHide(float waitTime)
	{
		if (!JavaMessageHandler.interstitialPreloaded)
		{
			AdvertisementHandler.PreloadInterstitial();
		}
		yield return new WaitForSeconds(1f);
		AdvertisementHandler.HideAds();
	}
}
